﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace IlianaRuler.Utility
{
    class Utility
    {
        public static byte[] MD5Encrypt(string str)
        {
            // Create a new instance of the MD5CryptoServiceProvider object.
            MD5 md5Hasher = MD5.Create();

            // Convert the input string to a byte array and compute the hash.
            return md5Hasher.ComputeHash(Encoding.Default.GetBytes(str));
        }

        public static byte[] AESEncrypt(byte[] key, byte[] originalData)
        {

        }
    }
}
